package com.userfactssample.client.client;

import java.util.ArrayList;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.userfactssample.client.client.screens.ByeScreen;
import com.userfactssample.client.client.screens.EmailScreen;
import com.userfactssample.client.client.screens.QuestionScreen;
import com.userfactssample.client.client.screens.QuestionScreenMultipleWithIcon;
import com.userfactssample.client.client.screens.QuestionScreenSingle;
import com.userfactssample.client.client.screens.UMScreen;
import com.userfactssample.client.client.screens.WelcomeScreen;
import com.userfactssample.client.client.screens.navigator.UMNavigator;

public class Userfactssample implements EntryPoint {

	ArrayList<UMScreen> screens = new ArrayList<UMScreen>();

	public Userfactssample() {
		screens.add(new WelcomeScreen());
		screens.add(new EmailScreen());
		screens.add(new QuestionScreenSingle());
		screens.add(new QuestionScreen());
		screens.add(new QuestionScreenMultipleWithIcon());
		screens.add(new ByeScreen());
	}
	
	@Override
	public void onModuleLoad() {
		UMNavigator navigator = new UMNavigator();
		navigator.attach(screens, 0);
		RootLayoutPanel.get().add(navigator.getUiComponent());
	}
}
